Skip to contentSkip to conversation

Change in openvpn[master]: port-share: log incoming connections at verb 3 only

Openvpn-devel In review cron2 (Code Review) 2 participants 7 messages Feb 11 – Feb 13 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1770798406000.Ie5c9a88050de959cfb02e5f804323a8081ddb667@...2715...

#1 lore raw

Attention is currently required from: plaisthos.

Hello plaisthos,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email

to review the following change.

Change subject: port-share: log incoming connections at verb 3 only
......................................................................

port-share: log incoming connections at verb 3 only

From "day 1" the message "Non-OpenVPN client protocol detected" was logged at D_STREAM_ERRORS level (verb 1), while it is not anything erroneous in this context (it's inside an "port share" only block).

Bump this to D_PS_PROXY (verb 3).

Github: closes OpenVPN/openvpn#976

Change-Id Ie5c9a88050de959cfb02e5f804323a8081ddb667

---
M src/openvpn/socket.c

1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/16/1516/1

src/openvpn/socket.c +1 -1
index 58ccda9..d97b770 100644
@@ -2149,7 +2149,7 @@
         {
             if (!is_openvpn_protocol(&sb->buf))
             {
-                msg(D_STREAM_ERRORS, "Non-OpenVPN client protocol detected");
+                msg(D_PS_PROXY, "Non-OpenVPN client protocol detected");
                 sb->port_share_state = PS_FOREIGN;
                 sb->error = true;
                 return false;

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie5c9a88050de959cfb02e5f804323a8081ddb667
Gerrit-Change-Number: 1516
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2, plaisthos.

flichtenheld has posted comments on this change by cron2. ( http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email )

Change subject: port-share: log incoming connections at verb 3 only
......................................................................

Patch Set 1: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie5c9a88050de959cfb02e5f804323a8081ddb667
Gerrit-Change-Number: 1516
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Wed, 11 Feb 2026 11:21:48 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

#3 lore raw
In reply to a message not in the archive

Attention is currently required from: cron2.

plaisthos has posted comments on this change by cron2. ( http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email )

Change subject: port-share: log incoming connections at verb 3 only
......................................................................

Patch Set 1: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie5c9a88050de959cfb02e5f804323a8081ddb667
Gerrit-Change-Number: 1516
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Wed, 11 Feb 2026 11:23:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

#4 lore raw

PATCH 1/1 port-share: log incoming connections at verb 3 only

In reply to a message not in the archive

From "day 1" the message "Non-OpenVPN client protocol detected" was logged at D_STREAM_ERRORS level (verb 1), while it is not anything erroneous in this context (it's inside an "port share" only block).

Bump this to D_PS_PROXY (verb 3).

Github: closes OpenVPN/openvpn#976

Change-Id Ie5c9a88050de959cfb02e5f804323a8081ddb667

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1516
---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1516
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Arne Schwabe <[email protected]...>
Frank Lichtenheld <[email protected]...>

src/openvpn/socket.c +1 -1
index 58ccda9..d97b770 100644
@@ -2149,7 +2149,7 @@
         {
             if (!is_openvpn_protocol(&sb->buf))
             {
-                msg(D_STREAM_ERRORS, "Non-OpenVPN client protocol detected");
+                msg(D_PS_PROXY, "Non-OpenVPN client protocol detected");
                 sb->port_share_state = PS_FOREIGN;
                 sb->error = true;
                 return false;
#5 lore raw

[Openvpn-devel] [PATCH applied] Re: port-share: log incoming connections at verb 3 only

Here we go, the first "mini bugfix" to the 2.7 series :-) - this is just a trivial log level change, but as the issue says, "error level" for something informational is just... wrong.

Your patch has been applied to the master and release/2.7 branch.

(It also serves as a test to the build infra, with a new branch to take care of)

commit 6f9ab9647cf0a3bc53e42e609437f892ce009e7a (master) commit 27505a5f2c4d34ceca44416090dda558ff99ad34 (release/2.7)

Author: Gert Doering
Date:   Wed Feb 11 12:33:10 2026 +0100
     port-share: log incoming connections at verb 3 only

     Signed-off-by: Gert Doering <[email protected]...>
     Acked-by: Arne Schwabe <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1516
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg35589.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#6 lore raw
In reply to a message not in the archive

Hello flichtenheld, plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review+2 by flichtenheld, Code-Review+2 by plaisthos

Change subject: port-share: log incoming connections at verb 3 only
......................................................................

port-share: log incoming connections at verb 3 only

From "day 1" the message "Non-OpenVPN client protocol detected" was logged at D_STREAM_ERRORS level (verb 1), while it is not anything erroneous in this context (it's inside an "port share" only block).

Bump this to D_PS_PROXY (verb 3).

Github: closes OpenVPN/openvpn#976

Change-Id Ie5c9a88050de959cfb02e5f804323a8081ddb667

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1516
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35589.html

---
M src/openvpn/socket.c

1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/16/1516/2

src/openvpn/socket.c +1 -1
index 58ccda9..d97b770 100644
@@ -2149,7 +2149,7 @@
         {
             if (!is_openvpn_protocol(&sb->buf))
             {
-                msg(D_STREAM_ERRORS, "Non-OpenVPN client protocol detected");
+                msg(D_PS_PROXY, "Non-OpenVPN client protocol detected");
                 sb->port_share_state = PS_FOREIGN;
                 sb->error = true;
                 return false;

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie5c9a88050de959cfb02e5f804323a8081ddb667
Gerrit-Change-Number: 1516
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>

#7 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email )

Change subject: port-share: log incoming connections at verb 3 only
......................................................................

port-share: log incoming connections at verb 3 only

From "day 1" the message "Non-OpenVPN client protocol detected" was logged at D_STREAM_ERRORS level (verb 1), while it is not anything erroneous in this context (it's inside an "port share" only block).

Bump this to D_PS_PROXY (verb 3).

Github: closes OpenVPN/openvpn#976

Change-Id Ie5c9a88050de959cfb02e5f804323a8081ddb667

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1516
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35589.html

---
M src/openvpn/socket.c

1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/socket.c +1 -1
index 58ccda9..d97b770 100644
@@ -2149,7 +2149,7 @@
         {
             if (!is_openvpn_protocol(&sb->buf))
             {
-                msg(D_STREAM_ERRORS, "Non-OpenVPN client protocol detected");
+                msg(D_PS_PROXY, "Non-OpenVPN client protocol detected");
                 sb->port_share_state = PS_FOREIGN;
                 sb->error = true;
                 return false;

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1516?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie5c9a88050de959cfb02e5f804323a8081ddb667
Gerrit-Change-Number: 1516
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>